themes: Restore default progressbar min sizes
authorDaniel Boles <dboles.src@gmail.com>
Tue, 3 Jul 2018 17:55:31 +0000 (18:55 +0100)
committerDaniel Boles <dboles.src@gmail.com>
Tue, 3 Jul 2018 17:55:31 +0000 (18:55 +0100)
commit14620423e840729e9a084678e465c52885cf4737
treeba08c655dab1822ea00dc02acac959343953c72f
parent55a1f8ccfd27c50b17cf2b91a7e4710db239c7b8
themes: Restore default progressbar min sizes

The min size on the oriented axis used to come from style props with
default values in the source file, used if the theme did not provide a
min size in CSS. When the style props were removed, so was any notion of
a minimal size for proressbars' main axis, meaning that now progressbars
without expand or any other source of min size were just tiny specks.

The right place to do that was always the theme, so in our themes now,
fix that by copying the old default values for the style properties; see:

https://gitlab.gnome.org/GNOME/gtk/issues/1191#note_259393
https://gitlab.gnome.org/GNOME/gtk/blob/gtk-3-24/gtk/gtkprogressbar.c#L92

The result should be the same in that (A) the min size is now what it is
in GTK+ 3 & (B) an app/user can override the theme exactly the same way.

Close https://gitlab.gnome.org/GNOME/gtk/issues/1192
gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css
gtk/theme/HighContrast/_common.scss
gtk/theme/HighContrast/gtk-contained-inverse.css
gtk/theme/HighContrast/gtk-contained.css